<?php 
defined('IN_ADMIN') or exit('No permission resources.'); 
$show_header = 1;
include $this->admin_tpl('header','admin');
?>

<div class="subnav"> 
<div class="content-menu ib-a blue line-x">
&nbsp;&nbsp;<a href="<?php echo APP_PATH;?>index.php?m=content&c=content&a=ajax_certificate&tp=1" <?php echo $class;?>><em>未审核</em></a> <span>|</span> <a href="<?php echo APP_PATH;?>index.php?m=content&c=content&a=ajax_certificate&tp=2" <?php echo $class2;?>><em>已审核</em></a>
</div>
<div class="pad-10">
<div class="table-list">
<form name="myform" action="?m=special&c=content&a=listorder&specialid=<?php echo $_GET['specialid']?>" method="post">
    <table width="100%">
        <thead>
            <tr>
			<th width="40"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
			<th width="50">用户</th>
            <th width="100">证书类型</th>
             <th width="90">证书图</th>
            <th width="90">状态</th>
            <th width="120">上传时间</th>
			<th width=""><?php echo L('operations_manage')?></th>
            </tr>
        </thead>
<tbody>
    <?php foreach ($datas as $r) {
    	if ($r['curl']) {
    		$content_arr = explode('|', $r['curl']);
    		$r['url'] = go($content_arr['1'], $content_arr['0']);
    	}
    ?>
        <tr>
		<td align="center" width="40"><input class="inputcheckbox " name="cid[]" value="<?php echo $r['cid'];?>" type="checkbox"></td>
    	<td><?php echo $r['username'];?></td>
    	<td align='center' width="40"><?php if($r['catid']==1){echo '营业执照图';}else{echo '资历证书图';}?></td>
		<td align='center' width="60"><a href="javascript:;" onclick="javascript:openwinx('index.php?m=content&c=content&a=certificate_image&cid=<?php echo $r[cid];?>','')"><img src="<?php echo get_thumb_url($r['photo']);?>" width="150"/></a></td>
		
		<td align='center' width="90"><?php if($r['ischeck']==0){echo '未审核';}else{echo '已审核';}?></td>
		<td align='center' width="120"><?php echo $r['addtime'];?></td>
		<td align='center' width=""><a href="javascript:;" onclick="javascript:openwinx('index.php?m=content&c=content&a=certificate_image&cid=<?php echo $r[cid];?>','')">查看</a> | <a href="<?php echo APP_PATH;?>index.php?m=content&c=content&a=ajax_certificate&cid=<?php echo $r[cid];?>&bankurl=<?php echo $bankurl;?>" onclick="return confirm('确定通过吗?')">通过审核</a></td>
	</tr>
     <?php }?>
</tbody>
     </table>
    <div class="btn"><label for="check_box"><?php echo L('selected_all')?>/<?php echo L('cancel')?></label>  <input type="submit" class="button" value="<?php echo L('delete')?>" onclick="if(confirm('<?php echo L('confirm', array('message' => L('selected')))?>')){document.myform.action='?m=content&c=content&a=ajax_certificate&bankurl=<?php echo $bankurl;?>'}else{return false;}"/></div>
    <div id="pages"><?php echo $pages;?></div>
</form>
</div>
</div>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>cookie.js"></script>
<script type="text/javascript">
setcookie('refersh_time', 0);
function refersh_window() {
	var refersh_time = getcookie('refersh_time');
	if(refersh_time==1) {
		window.location.reload();
	}
}

setInterval("refersh_window()", 5000);
</script>
</body>
</html>